//
//  MainViewController.h
//  TestPhotoMS
//
//  Created by Hung Nguyen Thanh on 10/2/11.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import "FlipsideViewController.h"
#import "Photo.h"
#import "PhotoViewController.h"
#import "XMLProcess.h"

@interface MainViewController : UIViewController <FlipsideViewControllerDelegate, UITableViewDelegate, UITableViewDataSource, NSXMLParserDelegate, PhotoViewDelegate, XMLProcessDelegate>
{
    NSXMLParser *parser; 
    NSString *currentElement;
    NSMutableArray *data;
    NSString *currentImage;
    Photo *currentPhoto;
    UITableView *photoTableView;
    BOOL isShow;
}


@property (strong, nonatomic) UIPopoverController *flipsidePopoverController;
@property (strong, nonatomic) IBOutlet UITableView *photoTableView;
@property (weak, nonatomic) IBOutlet UIImageView *imageView1;
@property (weak, nonatomic) IBOutlet UIImageView *imageView2;
@property (weak, nonatomic) IBOutlet UIImageView *imageView3;
@property (weak, nonatomic) IBOutlet UIImageView *imageView4;
@property (weak, nonatomic) IBOutlet UIImageView *imageView5;
@property (weak, nonatomic) IBOutlet UIImageView *imageView6;
@property (assign, nonatomic) NSInteger currentImageView;

- (IBAction)showInfo:(id)sender;
- (IBAction)login:(id)sender;

- (void)parserXMLWithURL:(NSString *)URLStr;
- (void)addCellToTableView;
- (void)addImageToImageView:(Photo*)photo;
@end
